<?
define('ACCOUNT', !class_exists('account'));
//check user cookie to remember
//print_r($_COOKIE);

if(!ACCESS && $_COOKIE['SKEY']) account::remember($_SERVER['REQUEST_URI']);
//if(!UNCONFIRMED && ACCESS) account::ping();
$data->account->stat = account::stat();
$data->account->stat = sprintf(dgettext('account','%s of %s members are online'),
                            number_format($data->account->stat['online'],0,'','.'),
                            number_format($data->account->stat['total'],0,'','.'));

if(UNCONFIRMED) {
    common::guide(GUIDE_ERROR, dgettext('account','You must confirm at your account to use the system!'));
}
?>